<?
    $localhost = "localhost" ;
    $dbUser = "root" ;
    $dbPwd = "root" ;
    $dbname = "shundian" ;
    $link = mysqli_connect($localhost,$dbUser,$dbPwd,$dbname);
    if(!$link) {
        die('数据库连接失败');
    }
?>